package com.cskaoyan.service.promote;

import com.cskaoyan.bean.MallCoupon;
import com.cskaoyan.model.bo.promote.SimpleMallCoupon;
import com.cskaoyan.model.vo.promote_ad.BaseData;

/**
 * TODO
 *
 * @author：23117
 * @date: 2021/12/1
 */
public interface CouponService {
    BaseData list();

    MallCoupon create(SimpleMallCoupon simpleMallCoupon);

    boolean update(MallCoupon mallCoupon);

    boolean delete(MallCoupon mallCoupon);

    BaseData wxList(Integer page, Integer limit);

    BaseData wxMyList(Integer page, Integer limit);

    int wxExchange(String code,Integer userId);

    BaseData selectList(Integer cartID, Integer grouponRulesId,Integer userId);

    int receive(Integer couponId, Integer userid);

    MallCoupon read(Integer id);

    BaseData listUser(Integer page, Integer limit, Integer couponId);
}
